﻿using Microsoft.Practices.Unity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using Ymatou.Unity;
using YmatouSeller.Notice.ApplicationService;

namespace YmatouSeller.Notice.API
{
    public class UnityConfig
    {
        public static void RegisterComponents()
        {
            var container = UnityContainerInstance.Instance;

            ServiceIocRegister.RegisterTypes(container);

            DependencyResolver.SetResolver(new UnityDependencyResolver(container));

            //Ymatou.Unity.Mvc.YmatouUnityMvcRegistration.RegisterControllerFactory(container);

        }
    }
}